package com.cizzy.comment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cizzy.comment.common.Result;
import com.cizzy.comment.entity.dao.CommentDAO;
import com.cizzy.comment.entity.dto.CommentDTO;
import com.cizzy.comment.entity.vo.CommentRequest;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author terry
 * @since 2023-11-04
 */
public interface ICommentService extends IService<CommentDAO> {
    Result<List<CommentDTO>> getCommentListByVideoId(CommentRequest commentRequest);

    Result<List<CommentDTO>> getCommentPageByVideoId(CommentRequest commentRequest);

    Result<List<CommentDTO>> getCommentListByParentCommentId(CommentRequest commentRequest);

    Result<List<CommentDTO>> getCommentPageByParentCommentId(CommentRequest commentRequest);

    Result<CommentDAO> getCommentByCommentId(Long commentId);

    Result<CommentDAO> createComment(CommentDAO comment);

    Result<CommentDAO> deleteCommentById(Long commentId);

    Result<CommentDAO> deleteChildrenComment(Long commentId);

    Result<List<CommentDTO>> getBulletChatCommentList(CommentRequest commentRequest);
}
